import axios from "../utils/request";
//根据搜索框的内容返回标签
export const $getTagList=async (params)=>{
    let {data}=await axios.get('tag/searchPostTag',{params:params});
    return data;
}
//获取广场帖子数据
export const $getPosts=async(params)=> {
    console.log()
    let {data} = await axios.get('post/recommendations', {params: params});
    return data;
}
//获取广场关注帖子数据
export const $getFollowPosts=async(params)=> {
    let {data} = await axios.get('post/followPost', {params: params});
    return data;
}
//生成新的帖子
export const $newPost=async(params)=>{
    console.log(params);
    let {data}=await axios.post('post/newPost2',params);
    return data;
}
//搜索用户标签
export const $getSearchTagList=async (params)=>{
    let {data}=await axios.get('tag/searchStudentTag',{params:params});
    return data;
}
//申请权限
export const $getAuthority=async(params)=>{
    console.log(params);
    let {data}=await axios.post('authority/verification',params);
    return data;
}